<div class="main_body">
    <?php echo $this->element('main_menu')?>		
	<div id="main_body_content">

		<div class="employees form">
		<?php echo $this->Form->create('Employee');?>
			<fieldset>
		 		<legend><?php __("Edit Employee"); ?></legend>
			<?php
				echo $this->Form->hidden('id');
				echo $this->Form->hidden('user_id');
				echo $this->Form->input('name',array('label'=>__("First Name",true)));
				echo $this->Form->input('surname',array('label'=>__("Last Name",true)));
				echo $this->Form->input('address1');
				echo $this->Form->input('address2');
				echo $this->Form->input('address3',array('label'=>__("City",true)));
				echo $this->Form->input('address4',array('label'=>__("State",true)));
				echo $this->Form->input('address5',array('label'=>__("Zip coode",true)));
				echo $this->Form->input('phone1');
				echo $this->Form->input('phone2');
				echo $this->Form->input('phone3');
				echo $this->Form->input('ssn_irs');
				echo $this->Form->input('numer_id',array('type'=>'text'));
				echo $this->Form->input('type_of_work_id');
				echo $this->Form->input('type_of_work_2_id',array('options'=>$typeOfWorks,'empty'=>''));
				echo $this->Form->input('type_of_work_3_id',array('options'=>$typeOfWorks,'empty'=>''));
				echo $this->Form->input('date_of_employment',array('type'=>'text'));
				echo $this->Form->input('employment_end_date',array('type'=>'text'));
				echo $this->Form->input('User.email');
			?>
			</fieldset>
		<?php echo $this->Form->end(__("Submit", true));?>
		</div>
		
		<div class="clr"></div>	
	</div>			
	<?php echo $this->element('languages')?>	
	<div class="clr"></div>
</div>	
<div class="clr"></div>	
<div class="main_action">
	<div class="main_action_content">
			
		<div class="actions">
			<h3><?php __("Actions"); ?></h3>
			<ul>
				
				<li><?php echo $this->Html->link($html->image(HOST.'/actions_employee_view.png'), array('action' => 'view', $this->Form->value('Employee.id')),array('title'=>__("View Employee", true),'escape'=>false));?><div class="clr"></div><?php echo __("View Employee", true)?></li>
				<?php if($session->read('Auth.User.group') != 'emplo'){?>
				<li><?php echo $this->Html->link($html->image(HOST.'/actions_employee_delete.png'), array('action' => 'delete', $this->Form->value('Employee.id')), array('title'=>__("Delete", true),'escape'=>false), sprintf(__("Are you sure you want to delete # %s?", true), $this->Form->value('Employee.id'))); ?><div class="clr"></div><?php echo __("Delete", true)?></li>
				<li><?php echo $this->Html->link($html->image(HOST.'/actions_works_list.png'), array('controller' => 'type_of_works', 'action' => 'index'),array('title'=>__("List Type Of Work", true),'escape'=>false)); ?><div class="clr"></div> <?php echo __("List Type Of Work", true)?></li>
				<li><?php echo $this->Html->link($html->image(HOST.'/actions_employees.png'), array('action' => 'index'),array('title'=>__("List Employees", true),'escape'=>false));?><div class="clr"></div><?php echo __("List Employees", true)?></li>
				<li><?php echo $this->Html->link($html->image(HOST.'/actions_orders_list.png'), array('controller' => 'orders', 'action' => 'index'),array('title'=>__("List Orders", true),'escape'=>false)); ?><div class="clr"></div><?php echo __("List Orders", true)?> </li>
				<?php }?>
			</ul>
		</div>
		
		<div class="clr"></div>
	</div>		
</div>			